<%@ tag language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>

<%@ attribute name="key" type="java.lang.String" description="选中的菜单"%>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<br />
<div class="nav-center">
    <ul class="nav nav-pills nav-pills-dark nav-pills-icons">
        <li class="${key eq 'index'?'active':''}"><a href="${ctx}/adminConsole/page/index">首页</a></li>
        <li class="${key eq 'searchOptimize'?'active':''}"><a href="${ctx}/adminConsole/searchOptimize/pageList">案例</a></li>
        <li class="${key eq 'searchHi'?'active':''}"><a href="${ctx}/adminConsole/searchHi/pageList">搜索历史</a></li>
        <li class="${key eq 'searchStat'?'active':''}"><a href="${ctx}/adminConsole/searchHi/stat">搜索统计</a></li>
        <li class="${key eq 'dicExtWords'?'active':''}"><a href="${ctx}/adminConsole/dicExtWords/pageList">词库管理</a></li>
        <li class="${key eq 'sysAdmin'?'active':''}"><a href="${ctx}/adminConsole/sysDynamic/pageList">系统管理</a></li>
    </ul>
</div>
